function datagridgrowth (data, addr, addc, iscallback) {
    return new Array(addr).fill(null).map(() => new Array(addc).fill(null));
}

function build (celldata, row, column) {
    let data = datagridgrowth([], row, column);
    // for (let i = 0; i < celldata.length; i++) {
    //     let item = celldata[i];
    //     let r = item.r;
    //     let c = item.c;
    //     let v = item.v;
    //     data = datagridgrowth(data, r - data.length + 1, 0);
    //     data = datagridgrowth(data, 0, c - data[0].length + 1);
    // }
    return data;
}
addEventListener('message', function (e) {
    const { row, column, curRowCell, sheetIndex } = e.data;
    let data = build(curRowCell, row, column);
    this.postMessage({ data: data, sheetIndex });
});
